// 补环境
metaContent = "meta_content"
window = self = top = global
window.addEventListener = function () {

}
window.setInterval = function () {

}
window.setTimeout = function () {

}

window.ActiveXObject = undefined
div = {
    getElementsByTagName() {
        return []
    },

}
_head = {
    removeChild: function () {

    }
}
script = {
    getAttribute(attr) {
        console.log("script attr", attr)
        if (attr === "r") {
            return "m"
        }
    },
    parentElement: _head
}
meta = {
    content: metaContent,
    getAttribute(attr) {
        console.log("meta attr", attr)
        if (attr === "r") {
            return "m"
        }
        // if (attr === "content") {
        //     return
        // }
    },
    parentNode: _head,

}
form = {}
document = {
    getElementById(){},
    appendChild() {
    },
    removeChild() {
    },
    createElement(ele) {
        console.log("document createElement", ele)
        if (ele === "div") {
            return div
        }if (ele === "form") {
            return form
        } else {
            return {}
        }
    },
    getElementsByTagName(ele) {
        console.log("document getElementsByTagName", ele)
        if (ele === "script") {
            return [script, script]
        }
        if (ele === "meta") {
            return [meta, meta]
        }
        if (ele === "base") {
            return []
        } else {
            return []
        }
    }

}


location = {
    "ancestorOrigins": {},
    "href": "https://www.ouyeel.com/search-ng/queryResource/index",
    "origin": "https://www.ouyeel.com",
    "protocol": "https:",
    "host": "www.ouyeel.com",
    "hostname": "www.ouyeel.com",
    "port": "",
    "pathname": "/search-ng/queryResource/index",
    "search": "",
    "hash": ""
}
navigator = {
    userAgent:'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36'
}

// 源码

'ts_js'
;
'auto_script_js'
;

// api
function get_cookies() {
    return document.cookie
}
